package cn.lk1234.imt.dao;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import cn.lk1234.imt.dao.dbtool.DBTools;
import cn.lk1234.imt.dao.dbtool.MapBean;

@Transactional
@Repository("moduleDao")
public class ModuleDao {

	@Autowired
	public DBTools DBTools;

	/**
	 * 不分页，查询所有数据
	 * 
	 * @return
	 * @throws SQLException
	 */
	public List<MapBean> getModuleList() throws SQLException {
		List<MapBean> dataList = DBTools.table("tb_moduleinfo").order("MODULE_NO").select();
		return dataList;
	}
	

}
